package com.novel.entiy;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author tanghao
 * @date 2022/4/24
 */
@ApiModel(value = "com-novel-entiy-RewardRecord")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "reward_record")
public class RewardRecord {
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "")
    private Integer id;

    /**
     * 用户id
     */
    @TableField(value = "user_id")
    @ApiModelProperty(value = "用户id")
    private Long userId;

    /**
     * 小说名称
     */
    @TableField(value = "novel_title")
    @ApiModelProperty(value = "小说名称")
    private String novelTitle;

    /**
     * 小说id
     */
    @TableField(value = "novel_id")
    @ApiModelProperty(value = "小说id")
    private Long novelId;

    /**
     * 作者名称
     */
    @TableField(value = "author_name")
    @ApiModelProperty(value = "作者名称")
    private String authorName;

    /**
     * 作者id
     */
    @TableField(value = "author_id")
    @ApiModelProperty(value = "作者id")
    private Long authorId;

    /**
     * 支付时间
     */
    @TableField(value = "pay_time")
    @ApiModelProperty(value = "支付时间")
    private Date payTime;

    /**
     * 金额
     */
    @TableField(value = "amount")
    @ApiModelProperty(value = "金额")
    private Long amount;

    public static final String COL_ID = "id";

    public static final String COL_USER_ID = "user_id";

    public static final String COL_NOVEL_TITLE = "novel_title";

    public static final String COL_NOVEL_ID = "novel_id";

    public static final String COL_AUTHOR_NAME = "author_name";

    public static final String COL_AUTHOR_ID = "author_id";

    public static final String COL_PAY_TIME = "pay_time";

    public static final String COL_AMOUNT = "amount";
}